package com.rambo.spm.sys.dao.inter.po;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 系统用户
 * </p>
 *
 * @author rambo
 * @since 2017-07-21
 */
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("UUID")
    private String uuid;
    /**
     * 姓名
     */
    @TableField("NAME")
    private String name;
    /**
     * 密码
     */
    @TableField("PASSWD")
    private String passwd;
    /**
     * 性别
     */
    @TableField("SEX")
    private String sex;
    /**
     * 生日
     */
    @TableField("BIRTHDAY")
    private Date birthday;
    /**
     * 联系电话
     */
    @TableField("PHONE")
    private String phone;
    /**
     * 照片
     */
    @TableField("PHOTO")
    private String photo;
    /**
     * 电子邮件
     */
    @TableField("EMAIL")
    private String email;
    /**
     * 有效性
     */
    @TableField("YXBZ")
    private String yxbz;
    @TableField("SORTS")
    private String sorts;


    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPasswd() {
        return passwd;
    }

    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getYxbz() {
        return yxbz;
    }

    public void setYxbz(String yxbz) {
        this.yxbz = yxbz;
    }

    public String getSorts() {
        return sorts;
    }

    public void setSorts(String sorts) {
        this.sorts = sorts;
    }

    @Override
    protected Serializable pkVal() {
        return this.uuid;
    }

    @Override
    public String toString() {
        return "User{" + "uuid=" + uuid + ", name=" + name + ", passwd=" + passwd + ", sex=" + sex + ", birthday=" + birthday + ", phone=" + phone + ", photo=" + photo + ", email=" + email + ", yxbz=" + yxbz + ", sorts=" + sorts + "}";
    }
}
